import * as mongoose from 'mongoose';
import config from 'src/config/config';
export const NavSchema = new mongoose.Schema(
    {
        title: { type: String },
        link: { type: String },
        link_type: { type: Number, default: 1 }, //1 路由 2外链
        route_type: { type: Number, default: 0 }, //0 无 1 push 2 replace
        position: {
            type: Number,
            default: 2, //1 最顶部     2 中间   3 底部
        },
        is_opennew: {
            type: Number,
            default: 1, //1、本窗口    2、新窗口
        },
        sort: {
            type: Number,
            default: 100,
        },
        relation: {
            //  1,2,3
            type: [mongoose.SchemaTypes.Mixed],
            default: '',
        },
        status: { type: Number, default: 1 },
    },
    config.SchemaOptions,
);
